#include <iostream>
#include <cstring>
using namespace std;

class Rectangle
{
public:
    void area(int l, int b)
    {
        cout << "矩形的面积是：" << l * b << endl;
    }
    void perimeter(int l, int b)
    {
        cout << "矩形的周长是：" << 2 * (l + b) << endl;
    }
    void setLd(int l, int b)
    {
        length = l;
        breadth = b;
    }

private:
    int length;
    int breadth;
};

int main()
{
    Rectangle r1;
    r1.setLd(5, 6);
    r1.area(5, 6);
    r1.perimeter(5, 6);

    return 0;
}